export function initRederCamera() {
  var container = document.getElementById("container");
  // 摄像机
  var camera = new THREE.PerspectiveCamera(
    75,
    window.innerWidth / window.innerHeight,
    1,
    1100
  );
  // camera.target = new THREE.Vector3(0, 0, 0);
  // console.log(camera)
  // camera.updateProjectionMatrix();

  const renderer = new THREE.WebGLRenderer();
  renderer.setPixelRatio(window.devicePixelRatio);
  renderer.setSize(window.innerWidth, window.innerHeight);
  container.appendChild(renderer.domElement);

  return {
    camera,
    renderer,
  };
}
